/*
DATA INIT FILE
*/
CODE BYTE DataInitNTSC[] = {
0x00, 0x00,		//START


//------------
//--- Page 00
//------------
0xFF, 0x00,	// //--- Page 00
0x06, 0x06,	// // TSCP,TRSP
//$$$#if defined(PANEL_SRGB)
//$$$	0x07, 0x01,		// Serial RGB
//$$$#elif defined(PANEL_FP_LSB)	
//$$$	0x07, 0x02,		// FP LSB
//$$$#else
//$$$	0x07, 0x00,		// TCON
//$$$#endif			
////////0x08 40 // *** Output enable
0x1F, 0x00,	// // Disable Test mode
0x40, 0x10,	// // Input=Decoder
0x41, 0x0C,	// // Color=YCbCr
0x5F, 0x00,	// // Disable Test pattern

////--- SSPLL
0xF6, 0x00,	//PCLK_div_by_1 SPICLK_div_by_1
0xF7, 0x16,	//
			//SSPLL 108MHz
0xF8, 0x02,	//0xF8, 0x01,	//
0xF9, 0x00,	//0xF9, 0xE0,	//default 0x50,
0xFA, 0x00,	//0xFA, 0x00,	//
0xFB, 0x40,	//
0xFC, 0x23,	// // En. SSPLL
0xFD, 0x34,	//SSPLL Analog Control. POST[7:6]=0 VCO[5:4]=3 IPMP[2:0]=4
			 
0xFF, 0x04,	//page4
0xE1, 0x01,	//div1.5
0xE0, 0x01,	//PLL108

//------------
//--- Page 01
//------------
0xFF, 0x01,	// 
////--- Decoder
0x1C, 0x0F,	// // *** Disable Shadow
0x02, 0x40,	//
0x04, 0x00,	//
#ifdef MODEL_TW8836
//move to REG1E8
#else
0x05, 0x2F,	//
#endif
0x06, 0x03,	//
0x07, 0x02,	//
0x08, 0x12,	//REG108
0x09, 0xF0,	//
0x0A, 0x0B,	// 			HDELAY_LO
0x0B, 0xD0,	//
0x0C, 0xCC,	//
0x0D, 0x00,	//
0x10, 0x00,	//
0x11, 0x5C,	//
0x12, 0x11,	//
0x13, 0x80,	//
0x14, 0x80,	//
0x15, 0x00,	//
0x17, 0x80,	//
0x18, 0x44,	//
0x1D, 0x7F,	//
0x1E, 0x00,	//
0x20, 0x50,	//
0x21, 0x22,	//
0x22, 0xF0,	//
0x23, 0xD8,	//
0x24, 0xBC,	//
0x25, 0xB8,	//
0x26, 0x44,	//
0x27, 0x38,	//
0x28, 0x00,	//
0x29, 0x00,	//
0x2A, 0x78,	//
0x2B, 0x44,	//
0x2C, 0x30,	//
0x2D, 0x14,	//
0x2E, 0xA5,	//
0x2F, 0xE0,	//
0x33, 0x05,	//
0x34, 0x1A,	//
0x35, 0x00,	//
////--- ADC, LLPLL
0xC0, 0x01,	// // Clock=27M
0xCB, 0x30,	// // PD. LLPLL,SOG
0xE2, 0xD9,	// // Bias
0xE3, 0x07,	// //
0xE4, 0x33,	// //
0xE5, 0x31,	// //
0xE6, 0x00,	// //
0xE7, 0x2A,	// // AAF on
#ifdef MODEL_TW8836
0xE8, 0x2f,		//Reserved def 0x0E
#endif
//------------
//--- Page 02
//------------
0xFF, 0x02,	//  // Page 02
////--- scaler
0x01, 0x00,
0x02, 0x20,
0x03, 0x00,
0x04, 0x1C,
0x05, 0x8A,
0x06, 0x0F,
0x07, 0x80,
0x08, 0x10,
0x09, 0x00,
0x0A, 0x04,
0x0B, 0x01,	//??0x08
0x0C, 0xD0,
0x0D, 0x92,	//PCLKO div3.	default 0x01,
0x0E, 0x20,
0x0F, 0x00,
0x10, 0x21,	//default 0x28
//0x11, 0x21,	//scaler output width = 801(0x321)
//0x12, 0x03,	//BKFYI.Use value that assigned at InitWithNTSC()
0x13, 0x00,
0x14, 0x20,
0x15, 0x2E,
//0x16, 0xE0,	//BKFYI.Use value that assigned at InitWithNTSC()
//0x17, 0x01,
0x18, 0x00,
0x19, 0x10,	//!	VTOTAL	R20D[7:6]R209[7:0]	0x210(528)
0x1A, 0x00,
0x1B, 0x00,
0x1C, 0x42, //with AUTO
0x1D, 0x00,	//!	HTOTAL R21C[7:4]R21D[7;0] 0x400(1024)		
0x1E, 0x03,	//default 0x00. FW will change R21E[0]. R21E[1] is fixed as "1"
////--- TCON  120510: InitWithNTSC write TCON. We don't need to overwite save value again
//$$$0x40, 0x10,
//$$$0x41, 0x00,
//$$$0x42, 0x05,
//$$$0x43, 0x01,
//$$$0x44, 0x64,
//$$$0x45, 0xF4,
//$$$0x46, 0x00,
//$$$0x47, 0x0A,
//$$$0x48, 0x36,
//$$$0x49, 0x10,
//$$$0x4A, 0x00,
//$$$0x4B, 0x00,
//$$$0x4C, 0x00,
//$$$0x4D, 0x44,
//$$$0x4E, 0x04,

0xE0, 0x00,	// // Disable Gamma			+++only here
0xE4, 0x21,	// // Dither				---need to recover

0xff, 0xff
};

